﻿using System;

namespace AEA.RSSFeedReaderLib
{
    /// <summary>
    /// Provides data for the RSSFeed.DownLoadFeedCompleted event.
    /// </summary>
    public class DownLoadFeedCompletedEventArgs : EventArgs
    {
        /// <summary>
        /// Initialze a new instance of the AEA.RSSFeedReaderLib.DownLoadFeedCompletedEventArgs class.
        /// </summary>
        /// <param name="channelFeedCollection">The ChannelFeedCollection associated with the event.</param>
        /// <param name="error">Any error that occurred.</param>
        public DownLoadFeedCompletedEventArgs(ChannelFeedCollection channelFeedCollection, Exception error)
        {
            Channels = channelFeedCollection;
            Error = error;
        }

        /// <summary>
        /// Gets the collection of ChannelFeeds.
        /// </summary>
        public ChannelFeedCollection Channels { get; private set; }

        /// <summary>
        /// Gets a value indicating which error occurred.
        /// </summary>
        public Exception Error { get; private set; }
    }
}
